@charset "UTF-8";
@import "variables";
@import "mixin";

// region reset
html {
  height: 100%;
  width: 100%;
  font-size: 16px;
  background: none repeat scroll 0 0 #fff;
  color: #000;
}

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
  line-height: 1.15;
}

select, input, button, textarea {
  font-size: 99%;
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
  line-height: 1.15;
  &:focus {
    outline: none;
  }
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

div, dl, dt, dd, li, input, textarea, p, blockquote, th, td {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: normal;
}

input, textarea, select {
  -webkit-appearance: none; //ios清除input框默认样式
}

li {
  list-style: none outside none;
}

a {
  text-decoration: none;
  color: #000;
  outline: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  cursor: inherit;
}

a:hover, a:focus, a:active {
  text-decoration: none;
  color: #666;
  outline: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  cursor: inherit;
}

strong {
  font-weight: bold;
}

input[type="submit"] {
  cursor: inherit;
}

button {
  cursor: inherit;
}
// endregion

// region Bootstrap
/* bootstrap */
h1, .h1 {
  font-size: 36px;
}

h2, .h2 {
  font-size: 30px;
}

h3, .h3 {
  font-size: 24px;
}

h4, .h4 {
  font-size: 16px;
}

h5, .h5 {
  font-size: 14px;
}

h6, .h6 {
  font-size: 12px;
}

.text-left, .txt-left {
  text-align: left;
}

.text-right, .txt-right {
  text-align: right;
}

.text-center, .txt-center {
  text-align: center;
}

img {
  vertical-align: middle;
}

.img-responsive {
  display: block;
  height: auto;
  max-width: 100%;
}

/* table */
.tbl {
  border-collapse: collapse;
  border-spacing: 0;
}

/* btn */
.btn {
  font-weight: normal;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

/* opacity */
.fade {
  opacity: 0;
  -webkit-transition: opacity 0.15s linear;
  transition: opacity 0.15s linear;
}

.fade.in {
  opacity: 1;
}

/* box */
.pull-right {
  float: right !important;
}

.pull-left {
  float: left !important;
}

.hide {
  display: none !important;
}

.show {
  display: block !important;
}

.text-hide {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.hidden {
  display: none;
  visibility: hidden;
}

.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.clearfix {
  *zoom: 1;
  &:before, &:after {
    content: "";
    display: table;
  }
  &:after {
    clear: both;
    overflow: hidden;
  }
}

/* list */
.list-inline {
  list-style: none;
}

.list-inline>li {
  display: inline-block;
}

// endregion

// region my-common
.full-screen {
  width: 100%;
  height: auto;
}

.container {
  width: $container-width;
  margin: 0 auto;
}

@media (max-width: $screen-ss-max) {
  html {
    font-size: 16px * .625;
  }
  .container {
    width: $container-width * .625;
  }
}

@media (min-width: $screen-xs-min) and (max-width: $screen-xs-max) {
  html {
    font-size: 16px * .75;
  }
  .container {
    width: $container-width * .75;
  }
}

@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
  html {
    font-size: 16px * .875;
  }
  .container {
    width: $container-width * .875;
  }
}

@media (min-width: $screen-md-min) {
  html {
    font-size: 16px * .9375;
  }
  .container {
    width: $container-width * .9375;
  }
}

@media (min-width: $screen-lg-min) {
  html {
    font-size: 16px;
  }
  .container {
    width: $container-width;
  }
}

@media (min-width: $screen-bg-min) {
  html {
    font-size: 16px * 1.0625;
  }
  .container {
    width: $container-width * 1.09375;
  }
}

@media (min-width: $screen-hg-min) {
  html {
    font-size: 16px * 1.09375;
  }
  .container {
    width: $container-width * 1.25;
  }
}

@media (max-height: 519px) {
  .page3 .container {
    width: 500px;
  }
}

@media (min-height: 520px) {
  .page3 .container {
    width: 550px;
  }
}

@media (min-height: 600px) {
  .page3 .container {
    width: 710px;
  }
}

@media (min-height: 700px) {
  .page3 .container {
    width: 800px;
  }
}

@media (min-height: 800px) {
  .page3 .container {
    width: 900px;
  }
}

.relative-transform {
  position: relative;
}

.center-transform {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

// endregion
